var HaloObj = function  () {
	this.x = [];
	this.y = [];
	this.num = 5;
	this.r = [];
	this.alive = [];
}
HaloObj.prototype.init = function() {
	for (var i = this.num - 1; i >= 0; i--) {
		this.x[i] = 0;
		this.y[i] = 0;
		this.r[i] = 0;
		this.alive[i] = false;
	};
	
};
HaloObj.prototype.draw = function() {
	ctx1.save();
	ctx1.lineWidth = 2;
	ctx1.shadowColor = "rgb(203, 91, 0)";
	ctx1.shadowBlur = 10;
	for (var i = this.num - 1; i >= 0; i--) {
		if( this.alive[i] ){
			if( this.r[i] > 40){
				this.alive[i] = false;
			}
			var alpha = 1 - this.r[i]/45;
			this.r[i] += deltaTime * 0.05;
			ctx1.beginPath();
			ctx1.strokeStyle = "rgba( 203, 91, 0," + alpha +")";
			ctx1.arc( this.x[i], this.y[i], this.r[i], 0, Math.PI*2 );
			ctx1.closePath();
			ctx1.stroke();
		}
	};
	ctx1.restore();

};
HaloObj.prototype.born = function( x, y ) {
	for (var i = this.num - 1; i >= 0; i--) {
		if( this.alive[i] === false ){
			this.x[i] = x;
			this.y[i] = y;
			this.alive[i] = true;
			this.r[i] = 10;
			return;
		}
	};
};